<html>

<head>
    <script src="../node_modules/jquery/dist/jquery.js"></script>
    <link rel="stylesheet" href="../css/tableview.css" type="text/css" />
    <meta charset="utf-8" />


</head>

<body>
    <div class="container">
        <!--    <div id="contentdiv" onclick="clickDiv()">
            <label id="productName">乐享其成574期1号</label>
            <label id="prospectiveEarnings">7.4%</label>
            <label id="prospectiveEarningsTip">预期年化</label>
            <img src="" alt="" id=“iamgecss”>
            <div id="lineDiv"></div>
            <label id="deadline">143天 理财期限</label>
            <label id="tip">风险低  50000元起投</label>
        </div>  -->
    </div>



    <script type="text/javascript">
        $(function() {
            var data = [{
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, {
                "name": "我是徐丽"
            }, ];
            var length = data.length;
            for (var i = 0; i < length; i++) {
                var contentdiv = '<div class="contentdivcss" id="contentdiv' + i + '" onclick="clickDiv("1")">' +
                    '<label class="productName" id="productName' + i + '">' + data[i].name + '</label>' +
                    '<label class="prospectiveEarnings" id="prospectiveEarnings' + i + '">7.4%</label>' +
                    '<label class="prospectiveEarningsTip" id="prospectiveEarningsTip' + i + '">预期年化</label>' +
                    '<img class ="iamgecss"src=" " alt="" id=“iamgecss' + i + '”>' +
                    '<div class="lineDiv"id="lineDiv' + i + '"></div>' +
                    '<label class="deadline" id="deadline' + i + '">143天 理财期限</label>' +
                    '<label class="tip" id="tip' + i + '">风险低  50000元起投</label>' +
                    '</div>';
                $(".container").append(contentdiv);
            }
            var left = $(".productName").css("left");
            $(".prospectiveEarnings").css("left", left);
            $(".prospectiveEarningsTip").css("left", left);
            var aliginLeft = $(".lineDiv").css("left") + $(".lilneDiv").outerWidth + 1000;
            $(".deadline").css("left", aliginLeft);
            $(".tip") = $(".tip").css("left", aliginLeft);
        });
    </script>


    <button id="buttonrequest" style="width:100px;height:50px" onclick="clickDiv()">点击请求数据</button>

    <script type="text/javascript">
        function clickDiv() {
            $.get("http://yunhq.sse.com.cn:32041/v1/sh1/list/self/000010_000016_000009_000132_000133_000001_000003_000012_000011_000013", {
                begin: 0,
                end: 10,
                select: 'name,last,change,chg_rate'
            }, function(datas) {
                $("#getResponse").html(data); //返回的data是字符串类型
                alert(请求成功);
                alert("数据：" + datas + "\n状态：");
            }, "jsonp");
        }
    </script>

    <script>
        function requestData() {
            var xmlHttp;
            var txt, x, i;
            if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            } else { // code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    xmlDoc = xmlhttp.responseText;
                }
            }
            xmlhttp.open("GET", "https://jr.letv.com/api/extra/systemParams/v3/d639fee9f37bcfbaeb32db141c626499ac399806/1/1.7.5", true);
            xmlhttp.send();
        }
    </script>


    <script>
        $(document).ready(function() {
            $("button#buttonrequest").onclick(function() {
                alert("dadsffas");
                $.get("https://jr.letv.com/api/extra/systemParams/v3/d639fee9f37bcfbaeb32db141c626499ac399806/1/1.7.5", function(data, result, message, code) {
                    alert("数据：" + data + "\n状态：" + result);
                });
            });
        });
    </script>

</body>

</html>